
<?php
	//print_r($data_var);
?>



<h3>Create a new Survey:</h3><br />

<?php
 echo $form->create('Survey', array('action' => 'add_survey'));
?>

<?php

	echo $form->create('Survey');
	echo $form->input('Survey.name', array('label' => 'Survey name:'));
?>

<?= $form->hidden('Survey.client_id', array('value' => $client_id)); ?>

<?php echo $form->end('Create Survey'); ?>










<!--
<form action="/clients/add_item" method="post" >
	Survey Name:
	<input name='data[Survey][name]' id="SurveyName" type="text" /><br />
	<input type="submit" name='redirect" value="Create Survey" />
</form>
-->

<!--
<form action="/clients/add_survey" method="post" >
	Survey Name:
	<input name='data[Survey][name]' id="SurveyName" type="text" /><br />
	<input type="submit" name='redirect" value="Create Survey" />
</form>
-->